package com.example.easybuy.mapper;

import com.example.easybuy.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> findAll();
    
    User findById(@Param("id") Long id);
    
    int insert(User user);
    
    int update(User user);
    
    int deleteById(@Param("id") Long id);
}